<form class="form-horizontal">
    <div class="form-group">
        <label class="col-sm-2 control-label">账户</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="accountname" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">密码</label>
        <div class="col-sm-10">
            <input type="password" class="form-control" id="password" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">用户名</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="Uname" />
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">用户权限</label>
        <div class="col-sm-10" id="checkbox">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">锁定状态</label>
        <div class="col-sm-10" >
            <input type="radio" name="status" value="1">锁定</input>
            <input type="radio" name="status" value="0">不锁定</input>
        </div>
    </div>
</form>
<script type="text/html" id="check">
    {{each data}}
    <input type="checkbox" name="modelName" value="{{$value.modelName}}" unchecked>{{$value.modelName}}</input>
    {{/each}}
</script>
<script>
    $(function () {
        Ajax.get(
            "selectAllSystemModel",
            {},
            function (result) {
                var div=document.getElementById("checkbox")
                var data=result.data;
                var html=template('check',{
                    data:data
                })
                div.innerHTML=html
            }
        )
    })
</script>
